package com.maxlen.goods.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maxlen.goods.entity.AttrGroupEntity;
import com.maxlen.goods.entity.dto.SkuItemDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 *
 * @author MaxLen
 * @email MaxLen@gmail.com
 * @date 2022-10-27 09:43:29
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {

    List<SkuItemDTO.SpuItemAttrGroupDTO> getAttrGroupWithAttrsBySpuIdAndCategoryId(@Param("spuId") long spuId, @Param("categoryId") long categoryId);

}
